package model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.OneToMany;
import javax.persistence.JoinTable;
import java.util.HashSet;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: sevenbits
 * Date: 12/6/12
 * Time: 4:43 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="faculty")
public class Faculty {

    int id;
    String name;


    @Id
    @GeneratedValue(generator="increment")
    @GenericGenerator(name="increment", strategy = "increment")
    @Column(name="id")
    public int getId(){
        return id;
    }
    public void setId(int id){
        this.id = id;
    }

    @Column(name = "name")
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }


}
